package com.shoping.common.exception;

import org.springframework.http.HttpStatus;

/**
 * 在业务允许范围之外 会触发报警 返回HttpStatus=417, code=403
 *
 * @author zengweilong
 */
public class ServiceException extends BaseException {

    private static final long serialVersionUID = -6605859700154199571L;

    public ServiceException(String errMsg) {
        super(String.valueOf(HttpStatus.EXPECTATION_FAILED.value()), errMsg);
    }

    public ServiceException(String code, String errMsg) {
        super(code, errMsg);
    }
}
